package user

import (
	"time"

	. "gddgame.cc/galaxy/common/dsl/game/reward"
)

const UserMessageName = "user_message"

type UserMessage struct {
	Id       int               `json:"id" orm:"auto" sql:"INT"`
	UserId   int               `json:"user_id" sql:"INT"`
	Type     MessageType       `json:"type" sql:"TINYINT"`
	TargetId string            `json:"target_id" sql:"VARCHAR"`
	Content  map[string]string `json:"content" sql:"JSON"`
	Reward   Reward            `json:"reward" sql:"JSON"`

	Status bool `json:"status" sql:"TINYINT"`

	CreateTime *time.Time `json:"create_time" orm:"createTime" sql:"DATETIME"`
}
